package main

import (
	"PublicBenefitActivities/config"
	"PublicBenefitActivities/middleware"
	"PublicBenefitActivities/routers"
	"PublicBenefitActivities/utils"
)

func main() {
	// 初始化配置
	config.InitConfig()

	// 初始化日志
	logger := middleware.InitLogger()

	// 初始化数据库
	db := utils.InitDB(logger)

	// 启动服务
	r := routers.SetupRouter(db, logger)
	r.Run(":8080")
}
